﻿using B.S.NewMedical.Api.Read.DTOS.Hospital;
using B.S.NewMedical.ErrorCode;
using MediatR;

namespace B.S.NewMedical.Api.Read.Application.Command.ContentManagement.Hospital
{
    /// <summary>
    /// 医院搜索命令
    /// </summary>
    public class SearchHospitalCommand : IRequest<ApiPageing<HospitalDto>>
    {
        /// <summary>
        /// 医院名称（模糊搜索）
        /// </summary>
        public string? HospitalName { get; set; }

        /// <summary>
        /// 地区
        /// </summary>
        public string? Region { get; set; }

        /// <summary>
        /// 当前页码
        /// </summary>
        public int PageIndex { get; set; } = 1;

        /// <summary>
        /// 页容量
        /// </summary>
        public int PageSize { get; set; } = 10;
    }
}
